<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php
$attributes = array(
    'class' => 'control-label',
);
?>

<div class="span9">
    <?php $causaact = $this->session->userdata('causa'); ?>
    <div class="breadcrumb">
        <h4 style="margin: 0px;"><?php echo $causaact['caratula'] . ' - ' . $causaact['nroExpediente']; ?></h4>
    </div>

    <h2><?php echo $titulo; ?></h2>

    <?php echo get_message(); ?>

    <?php echo form_open(); ?>
    <div class="control-group">
        <?php echo form_label('Fecha de Finalización', 'finalizada', $attributes); ?>
        <div class="controls input-append">
            <?php
            echo form_input(array('class' => 'span5 date-picker', 'data-date-format' => 'dd/mm/yyyy', 'name' => 'finalizada', 'type' => 'text', 'value' => $causa['finalizada']));
            ?><span class="add-on"><i class="icon-calendar"></i></span>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Valoración', 'valoracion', $attributes); ?>
        <div class="controls">
            <?php
            echo form_dropdown('valoracion', $valoraciones, $causa['valoracion'], 'class="span6" id="valoracion"');
            ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Observación', 'observacion', $attributes); ?>
        <div class="controls">
            <?php
            echo form_textarea(array('class' => 'span6', 'rows' => '5', 'name' => 'observacion', 'type' => 'text', 'value' => $causa['observacion']));
            ?>

        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <?php echo form_input(array('class' => 'span6', 'name' => 'submit', 'type' => 'submit', 'value' => 'Guardar', 'class' => 'btn')); ?>
            <button type="button" onclick="window.location = '<?php echo base_url('causas/ver/' . $causaact['id']); ?>';" class="btn">Cancelar</button>
        </div>
    </div>
    <?php echo form_close(); ?>

</div>